<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var theThing = null;
			var replaceThing = function () {
			  var originalThing = theThing;
			  var unused = function () {
			    if (originalThing)
			      console.log("hi");
			  };
			  theThing = {
			    longStr: new Array(1000000).join('*'),
			    someMethod: function () {
			      console.log(someMessage);
			    }
			  };
			};
			setInterval(replaceThing, 1000);
		</script>
	</body>
</html>
